//#include "mainwindow.h"
#include <QApplication>
#include <QDateTime>
#include <QFile>
#include <QThread>
#include "form/homewindow.h"
#include "log/easylogging++.h"
#include "log/logger.h"
#include "threadmanager.h"

#include "util/BTimer.h"

// save the log into file.
INITIALIZE_EASYLOGGINGPP
#define ELPP_UNICODE
//#define ELPP_THREAD_SAFE

#include "config/constants.h"

int main(int argc, char *argv[])
{
    LOG_INFO << "主线程ID = " << QThread::currentThread();
    START_EASYLOGGINGPP(argc, argv);
    QApplication a(argc, argv);
                                                                                                                                                                                                                 
    Logger logger;

    QFile qss(":/style/white.qss");
    qss.open(QFile::ReadOnly);
    a.setStyleSheet(qss.readAll());
    qss.close();

    HomeWindow w;
    w.show();

    return a.exec();
}
